package com.ssm.web.interceptor;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

public class MethodAuthorityInterceptor implements MethodInterceptor {

	public Object invoke(MethodInvocation invocation) throws Throwable {

		Class<?> clazz = invocation.getThis().getClass();
		String methodName = invocation.getMethod().getName();
		
		System.out.println(clazz + "." + methodName);
		return invocation.proceed();
	}
}
